package com.design.pattern.adapter;

/**
 * @author : Yu.Tan
 * @date : 2023/9/15 11:02
 * @desc : this class for xxxxx
 **/
public class DogAdapter implements Robot {

    Dog dog;

    public DogAdapter(Dog dog) {
        this.dog = dog;
    }

    @Override
    public void cry() {
        System.out.println("机器人模拟狗叫...");
        dog.wang();
    }

    @Override
    public void move() {
        System.out.println("机器人模拟狗跑...");
        dog.run();
    }
}
